package com.wxh.new_erp.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wxh.new_erp.sys.domian.Dept;
import com.wxh.new_erp.sys.domian.Permission;
import com.wxh.new_erp.sys.mapper.DeptMapper;
import com.wxh.new_erp.sys.mapper.PermissionMapper;
import com.wxh.new_erp.sys.service.DeptService;
import com.wxh.new_erp.sys.service.PermissionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;


@Service
@Transactional
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

@Override
   public boolean removeById(Serializable id){

    PermissionMapper permissionMapper=this.getBaseMapper();
    permissionMapper.deleteRolePermissionByPid(id);
    return super.removeById(id);

   }


}